//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

public class demo_1486 {
    public demo_1486() {
    }

    public int xorOperation(int n, int start) {
        int result = start;

        for(int i = 1; i < n; ++i) {
            result ^= start + 2 * i;
        }

        return result;
    }
}
